package com.company.demo.adapter_ac_dc;

public class JapanPowerAdapter implements TargetPower {
    AC110 ac110 = new AC110();

    @Override
    public boolean isSupport(AC ac) {
        return ac.getOutV() == ac110.getOutV();
    }

    @Override
    public int outputDC5V() {
        System.out.println("日本变压器110V");
        return ac110.getOutV() / 22;
    }
}
